package com.li.service;

import com.li.mapper.GradeMapper;
import com.li.mapper.GradesMapper;
import com.li.pojo.Grade;
import com.li.pojo.Grades;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GradeService {
    @Autowired
    GradeMapper gradeMapper;
    GradesMapper gradesMapper;
    public Grade queryGrade(Grade grade){
        return gradeMapper.queryGrade(grade);
    }
    public void deleteGrade(Grade grade){
        Grades grades=new Grades(grade.getGno());
        gradeMapper.deleteGrade(grade);
        gradesMapper.deleteGrades(grades);
    }
}
